package com.nba.service.impl;

import java.util.Date;
import java.util.List;

import com.nba.bean.Video;
import com.nba.dao.VideoDao;
import com.nba.dao.impl.VideoDaoImpl;
import com.nba.service.VideoService;

public class VideoServiceImpl implements VideoService {
	
	VideoDao videodao = new VideoDaoImpl();
	@Override
	public List<Video> selectVideoAll() {
		return videodao.selectVideoAll();
	}

	@Override
	public int addVideo(String videoTheme, String videoContent, String videoUrl, Date videoTime, int typeId) {
		return videodao.insertVideo(videoTheme, videoContent, videoUrl, videoTime, typeId);
	}

}
